package com.starry.push.netty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author WuChao
 * @version 1.0
 * @date 2020/11/3 18:28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "log_push_task")
public class LogPushTask {
    @TableId(value = "pk_id", type = IdType.ID_WORKER_STR)
    private String pkId;

    /**
     * 一次推送的id
     */
    @TableField(value = "push_id")
    private String pushId;

    @TableField(value = "channel_id")
    private String channelId;

    @TableField(value = "client_type")
    private String clientType;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "content")
    private String content;

    /**
     * 唯一标识
     */
    @TableField(value = "unique_identification")
    private String uniqueIdentification;

    public static final String COL_PK_ID = "pk_id";

    public static final String COL_PUSH_ID = "push_id";

    public static final String COL_CHANNEL_ID = "channel_id";

    public static final String COL_CLIENT_TYPE = "client_type";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_STATUS = "status";

    public static final String COL_CONTENT = "content";

    public static final String COL_UNIQUE_IDENTIFICATION = "unique_identification";
}